/**
 * debug
 */
window.onerror = function(message, url, linenumber) {
  $("#debug").append("<b>JavaScript error:</b> " + message + " on line " + linenumber + " for " + url + "<br />");
};
